Skip to content

Set Sentry release from app version#191

Merged
Dimillian merged 1 commit intomainfrom
codex/check-and-set-sentry-release-version
Jan 21, 2026
Merged

Set Sentry release from app version#191
Dimillian merged 1 commit intomainfrom
codex/check-and-set-sentry-release-version

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Sentry was initialized without a release tag, making it hard to correlate errors with app versions.
  • The app version is available in package.json and should be injected into the client build so Sentry receives a correct release value.

Description

  • Read version from package.json in vite.config.ts and expose it as a Vite define __APP_VERSION__.
  • Pass __APP_VERSION__ into Sentry.init as the release in src/main.tsx so Sentry events are attributed to the app version.
  • Add a global type declaration for __APP_VERSION__ in src/vite-env.d.ts.

Testing

  • Ran npm run lint, which completed successfully but reported one existing warning about a duplicate Hook dependency; lint did not fail.
  • Ran npm run typecheck (tsc --noEmit) which completed with no type errors.

Codex Task

@Dimillian Dimillian merged commit a7a3133 into main Jan 21, 2026
5 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant